<script setup>
defineProps({
  title: {
    type: String,
    default: 'AI助手'
  }
});
</script>

<template>
  <div class="chat-header">
    <div class="avatar">
      <div class="avatar-inner">AI</div>
    </div>
    <h1>{{ title }}</h1>
  </div>
</template>

<style scoped>
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f0f2f5;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 8px 8px 0 0;
}

.avatar {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.avatar-inner {
  font-size: 16px;
}

h1 {
  margin: 0;
  font-size: 18px;
  color: #333;
}
</style>